{layout name="layout" /}
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/jquery-ui.min.css">
<link rel="stylesheet" href="/static/css/audit.css">
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>

<script src="http://www.jq22.com/jquery/jquery-ui-1.11.0.js"></script>
<script src="/static/js/jquery-ui-timepicker-addon.min.js"></script>
<script src="/static/js/jquery-ui-timepicker-addon.min.js"></script>
<div class="row">
    <div class="col-xs-12">
        <div class="card-block">
            <div class="nav-tabs-custom">
                <div class="box">
                    <!-- /.box-header -->
                    <div class="box-body">
                        <div class="table-responsive">
                            <table id="staff" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>申请时间</th>
                                    <th>账户类型</th>
                                    <th>杠杆比例</th>
                                    <th>计划注资</th>
                                    <th>所属代理</th>
                                    <th>客户姓名</th>
                                    <th>账户</th>
                                    <th>邮箱</th>
                                    <th>手机</th>
                                    <th>开户行</th>
                                    <th>户名</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="records" id="vo"}
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.createdate}</td>
                                    <td>{$vo.usertype}</td>
                                    <td>{$vo.lever}</td>
                                    <td>{$vo.injection}</td>
                                    <td>{$vo.agentid}</td>
                                    <td>{$vo.contact}</td>
                                    <td>{$vo.username}</td>
                                    <td>{$vo.email}</td>
                                    <td>{$vo.mobile}</td>
                                    <td>{$vo.bank}</td>
                                    <td>{$vo.bankname}</td>
                                    <td>{:dchtml("DC_AUDIT",$vo['audit'])}</td>
                                    <td>
                                        <a href="{:url('edit',['id'=>$vo['id'],'catid'=>2])}" class = "btn btn-default btn-sm" title="编辑"><i class = "fa fa-pencil"></i>编辑</a>
                                        <a href="{:url('del',['id'=>$vo['id'],'catid'=>2])}" onclick="return confirm('确定删除吗？')" class = "btn btn-default btn-sm"><i class="fa fa-times"></i></a>
                                    </td>
                                </tr>

                                {/volist}
                                </tbody>
                                <!-- tbody是必须的 -->
                            </table>
                        </div>
                        {$records->render()}
                    </div>

                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
    </div>
</div>

</section>
{include file="public/base" /} {include file="public/footer" /}
</body>
<script>
    (function ($) {
        $(function () {
            $.datepicker.regional['zh-CN'] = {
                changeMonth: true,
                changeYear: true,
                clearText: '清除',
                clearStatus: '清除已选日期',
                closeText: '关闭',
                closeStatus: '不改变当前选择',
                prevText: '<上月',
                prevStatus: '显示上月',
                prevBigText: '<<',
                prevBigStatus: '显示上一年',
                nextText: '下月>',
                nextStatus: '显示下月',
                nextBigText: '>>',
                nextBigStatus: '显示下一年',
                currentText: '今天',
                currentStatus: '显示本月',
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
                monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
                monthStatus: '选择月份',
                yearStatus: '选择年份',
                weekHeader: '周',
                weekStatus: '年内周次',
                dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
                dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
                dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
                dayStatus: '设置 DD 为一周起始',
                dateStatus: '选择 m月 d日, DD',
                dateFormat: 'yy-mm-dd',
                firstDay: 1,
                initStatus: '请选择日期',
                isRTL: false
            };

        });

        $(function () {

            $.datepicker.setDefaults($.datepicker.regional['zh-CN']);

            $("#defult").datetimepicker();

            $('#date').prop("readonly", true).datetimepicker({
                timeText: '时间',
                hourText: '小时',
                minuteText: '分钟',
                secondText: '秒',
                currentText: '现在',
                closeText: '完成',
                showSecond: true, //显示秒
                timeFormat: 'HH:mm:ss' //格式化时间
            });

            $("#date_yy-mm-dd").prop("readonly", true).datepicker({
                changeMonth: true,
                dateFormat: "yy-mm-dd",
                onClose: function (selectedDate) {

                }

            });

        });


    }(jQuery));
</script>


</html>
